package com.aizhixin.lab.project.template.repository;

import com.aizhixin.lab.project.template.entity.TaskWorkOrder;
import com.aizhixin.lab.project.template.entity.WorkOrderFile;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TaskWorkOrderFileRepository extends JpaRepository<WorkOrderFile,String> {
    List<WorkOrderFile> findByWorkOrderIdAndDeleteFlag(String workOrderId,Integer deleteFlag);
    Integer deleteByWorkOrderId(String workOrderId);
    List<WorkOrderFile> findByWorkOrderIdInAndDeleteFlag(List<String> workOrderIds,Integer deleteFlag);
    Integer countByWorkOrderIdInAndDeleteFlag(List<String> workOrderIds, Integer deleteFlag);
}
